<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@ attribute name="name" type="java.lang.String" required="true" description="验证码输入框名称"%>
<%@ attribute name="inputCssStyle" type="java.lang.String" required="false" description="验证框样式"%>
<%@ attribute name="imageCssStyle" type="java.lang.String" required="false" description="验证码图片样式"%>
<%@ attribute name="buttonCssStyle" type="java.lang.String" required="false" description="看不清按钮样式"%>


<div class="inpBoxSm verify">
    <input type="text" id="${name}"  style="width:122px;" name="${name}" maxlength="5" class="required" style="${inputCssStyle}"/>
    <img src="${ctxStatic}/images/login_icon_04.png">
</div>
<div class="verifyImg">
    <img src="${pageContext.request.contextPath}/servlet/validateCodeServlet" onclick="$('.${name}Refresh').click();" class="mid ${name}" style="${imageCssStyle}"/>
</div>
<p class="verifyBtn">
        <a href="javascript:" onclick="$('.${name}').attr('src','${pageContext.request.contextPath}/servlet/validateCodeServlet?'+new Date().getTime());" style="${buttonCssStyle}"><spring:message code="login_change"/></a>
</p>